<template>
  <div class="accountsetcity">
    <el-form :inline="true">
      <el-form-item label="到账时间：">
        <el-date-picker
          v-model="value1"
          align="right"
          type="date"
          placeholder="选择日期"
          :picker-options="pickerOptions"
        >
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button class="el-icon-edit">到账</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="tableData" border style="width: 1866px" 
      :header-cell-style="{ 'text-align': 'center' }"
      :cell-style="{ 'text-align': 'center' }"
      :row-style="{ 'height': '48px'}">
      <el-table-column type="selection" width="55"></el-table-column>
      <el-table-column prop="name" fixed="left" label="姓名" width="120" />
      <el-table-column prop="province" label="身份证号" width="120" />
      <el-table-column prop="city" label="结算金额" width="120" />
      <el-table-column prop="address" label="账户余额" width="130" />
      <el-table-column prop="zip" label="利息" width="120" />
      <el-table-column prop="zip" label="利息截止日期" width="120" />
      <el-table-column prop="zip" label="利率" width="120" />
      <el-table-column prop="zip" label="备注" width="120" />
      <el-table-column prop="zip" label="操作员" width="120" />
      <el-table-column prop="zip" label="操作时间" width="120" />
      <el-table-column prop="zip" label="审核人" width="120" />
      <el-table-column prop="zip" label="审核时间" width="120" />
      <el-table-column prop="zip" label="审核状态" width="120" />
      <el-table-column prop="zip" label="财务人员" width="120" />
      <el-table-column prop="zip" label="到账时间" width="120" />
    </el-table>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-sizes="[10, 50 , 100, 200]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="this.tableData.length"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      msg: "账户结算到账（城居保）",
      value: "", // 到账时间
      value1: "", // 申请单
      pickerOptions: {
        disabledDate(time) {
          return time.getTime() > Date.now();
        },
        shortcuts: [
          {
            text: "今天",
            onClick(picker) {
              picker.$emit("pick", new Date());
            },
          },
          {
            text: "昨天",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24);
              picker.$emit("pick", date);
            },
          },
          {
            text: "一周前",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", date);
            },
          },
        ],
      },
      tableData: [], // 表单数据
      currentPage4: 1,
    };
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>

<style scoped lang="scss">
.accountsetcity {
  padding: 30px;
  /* &/deep/.cell {
    text-align: center;
  } */
  .el-pagination {
    max-width: 1866px;
    text-align: right;
  }
}
</style>
